import {Text, View} from 'react-native';
import React, {lazy, Suspense, Component} from 'react';
import {createNativeStackNavigator} from '@react-navigation/native-stack';
import Home from '@/screens/Home';
import About from '@/screens/Home/tabs/About';

// const Home = lazy(() => import('../screens/Home'));
// const About = lazy(() => import('../screens/About'));

const Stack = createNativeStackNavigator();

export default class Navigator extends Component {
  render() {
    return (
      <Stack.Navigator
        screenOptions={{
          headerShown: false,
        }}>
        <Stack.Screen name="Home" component={Home} />
        <Stack.Screen name="About" component={About} />
      </Stack.Navigator>
    );
  }
}
